<template>
  <div>
    <div class="app">
      <div class="head">
    收藏
        <span class="arrow" @click="Jump_path"></span>
       
      </div>
    </div>

    <div class="Navigation">
      <ul>
        <li v-for="(item) in  list" :key="item.id" @click="Jump_alis(item.id)">
          <div><img :src="item.imgurl" alt="" /></div>
          <div class="text1">{{item.name}}</div>
          <div class="text3">
            <span class="span1">￥{{item.price}}</span>
            <span class="span2">￥{{item.vip_price}}</span>
          </div>
        </li>
      </ul>
    </div>
  </div>
</template>
<script>

export default {
  props: [],
  data() {
    return {
      active: 0,
      list:'',
   



     
    };
  },
  methods: {
    Jump_path() {
      this.$router.go(-1);
    },
    // 跳转到商品详情页
    Jump_alis(id){
      this.$emit('getalisid',id)
      this.$router.push({name:'alis'})
    } ,
 
  },
  mounted() {
    let sclist = window.localStorage.getItem("sclist");
          sclist = JSON.parse(sclist);
          this.list=sclist
  },
};
</script>
<style scoped>
.head {
  position: fixed;
  top: 0;
  left: 0%;
  width: 100%;
  height: 50px;
  text-align: center;
  line-height: 50px;
  border-bottom: 1px solid #ccc;
  color: rgb(59, 59, 59);
  z-index: 999;
  background: #fff;
}
.arrow {
  display: block;
  width: 12px;
  height: 23px;
  position: absolute;
  top: 15px;
  left: 20px;
  z-index: 999;
  background: url(../../public/assets/images/ic_arrow_home.png);
  transform: rotate(180deg);
}
.nav {
  position: relative;
  margin-top: 50px;
  width: 100%;
  height: 50px;

}
.nav >>> .van-tabs__line {
  background-color: rgb(27, 36, 45);
  height: 2px;
  width: 25%;
}
.nav >>> .van-tabs--line .van-tabs__wrap {
  height: 50px;
}
.Navigation {
  margin-top: 50px;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}
.Navigation ul {
  width: 100%;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 60px;
}
.Navigation ul li {
  width: 49%;
  height: 280px;
  margin-bottom: 5px;
  background: #fff;
}
.Navigation ul li img {
  width: 100%;
  height: 174px;
  border-radius: 10px;
  overflow: hidden;
}
.text1 {
  line-height: 23px;
  padding: 0 10px;
  color: black;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 5px;
}
.text2 {
  color: rgb(159, 159, 159);
  font-size: 12px;
  padding: 0 10px;
  margin-bottom: 10px;
}
.text3 {
  padding: 0 10px;
  margin-bottom: 5px;
}
.span1 {
  font-size: 18px;
  color: rgb(236, 69, 9);
  font-weight: 500;
}
.span2 {
  font-size: 12px;
  color: rgb(159, 159, 159);
  text-decoration: line-through;
}
.iconfont {
  color: #ccc;
  font: 13px;
}
.ys {
  color: black;
}
.jtspan{
  position: absolute;
  top: 9px;
  right: 8px;
  z-index: 999;
}
.jtspan span{
display: block;
}
</style>